package com.qingrongby.shop.dto;

import com.qingrongby.shop.validators.PasswordEqual;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;


@Getter
@Setter
@PasswordEqual(min = 1,max = 10,message = "密码两次输入不一致！")
@ApiModel
public class PersonDTO {

    @ApiModelProperty("用户名")
    @Length(min = 2, max = 12, message = "eeee")
    private String name;

    private Integer age;

    private String password1;

    private String password2;
}
